package com.magicstone.common.Time;

public class Day {
	private Integer year;
	private Integer month;
	private Integer day;
	
	public Day(){
		
	}
	
	public Day(Integer year, Integer month, Integer day){
		this.year = year;
		this.month = month;
		this.day = day;
	}
	
	public String toString(){
		String result = "";
		result += year != null ? year : "????";
		result += "年";
		result += month != null ? month : "??";
		result += "月";
		result += day != null ? day : "??";
		result += "日";
		return result;
	}
	
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public Integer getMonth() {
		return month;
	}
	public void setMonth(Integer month) {
		this.month = month;
	}
	public Integer getDay() {
		return day;
	}
	public void setDay(Integer day) {
		this.day = day;
	}
	
}
